package edu.zut.service;

import com.sun.org.apache.regexp.internal.RE;
import edu.zut.repository.AyUserRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class AyUserService {
    @Resource
    private AyUserRepository ayUserRepository;

    @Transactional
    public void update(){
        ayUserRepository.updateNameById("阿龙",1);
    }

}
